package com.ruoyi.project.system.service.impl;

import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.project.system.domain.SiyuRecharge;
import com.ruoyi.project.system.mapper.SiyuRechargeMapper;
import com.ruoyi.project.system.service.ISiyuRechargeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * 充值记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-28
 */
@Service
public class SiyuRechargeServiceImpl implements ISiyuRechargeService
{
    @Autowired
    private SiyuRechargeMapper siyuRechargeMapper;

    /**
     * 查询充值记录列表
     * 
     * @param siyuRecharge 充值记录
     * @return 充值记录
     */
    @Override
    public List<SiyuRecharge> selectSiyuRechargeList(SiyuRecharge siyuRecharge)
    {
        return siyuRechargeMapper.selectSiyuRechargeList(siyuRecharge);
    }

    /**
     * 新增充值记录
     * 
     * @param siyuRecharge 充值记录
     * @return 结果
     */
    @Override
    public int insertSiyuRecharge(SiyuRecharge siyuRecharge)
    {
        siyuRecharge.setCreateTime(DateUtils.getNowDate());
        return siyuRechargeMapper.insertSiyuRecharge(siyuRecharge);
    }

}
